package com.example.park2301.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.example.lib_base.mvvm.BaseViewFragment
import com.example.park2301.R
import com.example.park2301.databinding.FragmentServiceBinding
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class ServiceFragment : BaseViewFragment<FragmentServiceBinding>() {
    override fun initView() {
        binding.jstx.setOnClickListener {
            ARouter.getInstance().build("/app/NewActivity").navigation()
        }
        binding.servicePark.setOnClickListener {
            start("/park/ParkActivity")
        }
        //点击跳转到维修管理页面
        binding.weixiu.setOnClickListener {
            start("/park/WeixiuActivity")
        }
        //点击去考勤管理页面
        binding.kaoqing.setOnClickListener {
            start("/app/KaoQingActivity")
        }
    }

    override fun initData() {
    }
    fun start(url:String){
        ARouter.getInstance().build(url).navigation()
    }
}